package com.myway.service.ibe;

import com.myway.dto.domain.Segment;
import com.myway.dto.vo.FlySegmentVo;

import java.util.List;
import java.util.Map;

/**
 * Created by yufei on 2018/8/19.
 */
public interface PNRCommandService {
    /**
     * 取消pnr
     * @param pnrNo
     * @return
     */
    public String cancelPnr(String pnrNo);

    /**
     * 查询PNR信息
     * @param pnrNo
     * @return
     * @throws Exception
     */
    public String getPnrByPnrNo(String pnrNo) throws Exception;

    /**
     * 查看PNR是否存在
     * @param pnrNo
     * @return
     * @throws Exception
     */
    public boolean isPnrAvailable(String pnrNo) throws Exception;

    /**
     * @名称：reconfirm
     * @描述：RR PNR中的所有航段
     * @param pnrNo
     * @param segments
     */
    public void reconfirm(String pnrNo, List<FlySegmentVo> segments) throws Exception;

}
